Optimal. Leaf size=80 \[ -\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}-\frac {a (4 b c-a d) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{2 c^{3/2}}+\frac {b^2 \sqrt {c+d x^2}}{d} \]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {446, 89, 80, 63, 208} \begin {gather*} -\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}-\frac {a (4 b c-a d) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{2 c^{3/2}}+\frac {b^2 \sqrt {c+d x^2}}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 80
Rule 89
Rule 208
Rule 446
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2}{x^3 \sqrt {c+d x^2}} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(a+b x)^2}{x^2 \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=-\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}+\frac {\operatorname {Subst}\left (\int \frac {\frac {1}{2} a (4 b c-a d)+b^2 c x}{x \sqrt {c+d x}} \, dx,x,x^2\right )}{2 c}\\ &=\frac {b^2 \sqrt {c+d x^2}}{d}-\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}+\frac {(a (4 b c-a d)) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )}{4 c}\\ &=\frac {b^2 \sqrt {c+d x^2}}{d}-\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}+\frac {(a (4 b c-a d)) \operatorname {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{2 c d}\\ &=\frac {b^2 \sqrt {c+d x^2}}{d}-\frac {a^2 \sqrt {c+d x^2}}{2 c x^2}-\frac {a (4 b c-a d) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{2 c^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 77, normalized size = 0.96 \begin {gather*} \frac {\frac {\sqrt {c} \sqrt {c+d x^2} \left (2 b^2 c x^2-a^2 d\right )}{d x^2}+a (a d-4 b c) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{2 c^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.13, size = 79, normalized size = 0.99 \begin {gather*} \frac {\sqrt {c+d x^2} \left (2 b^2 c x^2-a^2 d\right )}{2 c d x^2}+\frac {\left (a^2 d-4 a b c\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{2 c^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.54, size = 175, normalized size = 2.19 \begin {gather*} \left [-\frac {{\left (4 \, a b c d - a^{2} d^{2}\right )} \sqrt {c} x^{2} \log \left (-\frac {d x^{2} + 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) - 2 \, {\left (2 \, b^{2} c^{2} x^{2} - a^{2} c d\right )} \sqrt {d x^{2} + c}}{4 \, c^{2} d x^{2}}, \frac {{\left (4 \, a b c d - a^{2} d^{2}\right )} \sqrt {-c} x^{2} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) + {\left (2 \, b^{2} c^{2} x^{2} - a^{2} c d\right )} \sqrt {d x^{2} + c}}{2 \, c^{2} d x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.49, size = 81, normalized size = 1.01 \begin {gather*} \frac {2 \, \sqrt {d x^{2} + c} b^{2} - \frac {\sqrt {d x^{2} + c} a^{2} d}{c x^{2}} + \frac {{\left (4 \, a b c d - a^{2} d^{2}\right )} \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c} c}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 100, normalized size = 1.25 \begin {gather*} \frac {a^{2} d \ln \left (\frac {2 c +2 \sqrt {d \,x^{2}+c}\, \sqrt {c}}{x}\right )}{2 c^{\frac {3}{2}}}-\frac {2 a b \ln \left (\frac {2 c +2 \sqrt {d \,x^{2}+c}\, \sqrt {c}}{x}\right )}{\sqrt {c}}+\frac {\sqrt {d \,x^{2}+c}\, b^{2}}{d}-\frac {\sqrt {d \,x^{2}+c}\, a^{2}}{2 c \,x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.91, size = 77, normalized size = 0.96 \begin {gather*} -\frac {2 \, a b \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{\sqrt {c}} + \frac {a^{2} d \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{2 \, c^{\frac {3}{2}}} + \frac {\sqrt {d x^{2} + c} b^{2}}{d} - \frac {\sqrt {d x^{2} + c} a^{2}}{2 \, c x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.94, size = 65, normalized size = 0.81 \begin {gather*} \frac {b^2\,\sqrt {d\,x^2+c}}{d}+\frac {a\,\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )\,\left (a\,d-4\,b\,c\right )}{2\,c^{3/2}}-\frac {a^2\,\sqrt {d\,x^2+c}}{2\,c\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 130.45, size = 99, normalized size = 1.24 \begin {gather*} - \frac {a^{2} \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{2 c x} + \frac {a^{2} d \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{2 c^{\frac {3}{2}}} - \frac {2 a b \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{\sqrt {c}} + b^{2} \left (\begin {cases} \frac {x^{2}}{2 \sqrt {c}} & \text {for}\: d = 0 \\\frac {\sqrt {c + d x^{2}}}{d} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________